package aole.mindfx.model;

import javafx.scene.Node;
import javafx.scene.control.Button;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public abstract class MindFXNode {
	protected String	name;

	public MindFXNode( String n ) {
		name = n;
	}

	public boolean setXMLAttribute( String att, String value ) {
		return false;
	}

	public String getName() {
		return name;
	}

	public abstract Node getFXNode();

	public abstract void saveXML( Document doc, Element e );
	public abstract void loadXML( org.w3c.dom.Node node );
	
	public abstract Button getCodeButton();
}